home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-11-15 | 4.9 KB | 113 lines | [TEXT/MPS ] |
- #
- # makefile for "Example.r"
- #
- #
- # to build installer script :
- # 1) select "Build" from "Build" menu
- # 2) type script name "Example" ( note: ".r" is omitted )
- #
- # to build debug version of installer script :
- # 1) select "Build" from "Build" menu
- # 2) type script name "Example.debug"
- #
- #
- # mark young - 08/25/94
- #
- # NOTE: All the example makefiles use the standard of no quotes around
- # the variable assignments and use of double quotes around each expanded
- # variable within the commands in the makefile. As a general rule this
- # is not necessary, but was requested from some of our user's for
- # compatability with their scripts that run the example makefiles.
- #
- # As a general rule, when using paths, filenames or variables within
- # the command lines of a makefile you should only need to use single
- # or double quotes around a value that contains spaces. We have gone
- # overboard in use of quotes to allow for folks changing the paths
- # and filenames, so that if anyone adds a space character somewhere,
- # the modified makefile will still work.
- #
-
- # • script names
-
- # the installer script name
- scriptName = Example
- # the debug version installer script name
- debugScriptName = "{scriptName}.debug"
-
- # • tool names
-
- # You may want to change the paths or names of the InstaCompOne tools that are
- # provided with the 4.0.3 SDK. If you do change their names, you should
- # update the variable assignments below.
-
- # InstaCompOne compression tool
- compressTool = :::InstaCompOne 1.0:InstaCompOneTool
-
- # InstaCompOne splitting tool
- splitTool = :::InstaCompOne 1.0:FileAndRsrcSplitterTool
-
- # • support directory names
-
- # You may change the following paths as you see fit. Currently all paths
- # are set so that scripts will compile when using the original directory
- # layout from the Installer 4.0.3 SDK.
-
- # You may place the ScriptCheck tool in the 'MPW:Tools:' directory. Doing this
- # removes the need for the {ScriptCheckDir} variable within the makefile.
- # The same applies for the FileAndRsrcSplitterTool that is not used in this
- # example, but is used in the four examples for InstaCompOne compression
- # and splitting.
- ScriptCheckDir = :::ScriptCheck 4.0.3:
-
- # You may place "InstallerTypes.r" file in the 'MPW:Interfaces:RIncludes:' directory.
- # Doing this removes the need for the {InstallerRIncDir} variable or -i specification
- # for Rez and compile ( C ) commands within the makefile. The same applies to the rest
- # of the Developer Interface files. Placing the contents of the developer interface
- # folders provided with the 4.0.3 SDK into your 'MPW:Interfaces:' folders will eliminate
- # the need for any of the 'Installer_IncDir' variables within the example makefiles.
- # Be careful not to replace the entire folders within your 'MPW:Interfaces:' folder
- # with the installer interface folders. You should ADD the contents of the installer
- # Developer Interface folders to your 'MPW:Interface:' folders, by opening the Installer
- # interface folders one at a time, and adding the contents of each folder to the
- # appropriate 'MPW:Interfaces:' folder. Example: open the installer
- # 'Developer Interfaces:RIncludes:' folder, then drag it's contents into your
- # 'MPW:Interfaces:RIncludes:' folder. Repeat this process for each of the installer
- # interfaces folders.
- InstallerRIncDir = :::DeveloperInterfaces:RIncludes:
-
- # You may place "Installer Debugger.r" file in the 'MPW:Interfaces:RIncludes:' directory.
- # Doing this removes the need for the {InstallerDebuggerDir} variable within the makefile.
- InstallerDebuggerDir = :::Installer Debugger 4.0:
-
-
- # source file to be compressed
- SimpleSourceFileName = TeachText
- # archive file to be compressed into
- SimpleArchiveName = :Disk 1:Tome
-
- # make the debug version of finished installer script
- "{debugScriptName}" ƒ "{scriptName}"
- # make a copy of the finished installer script and rename the copy
- Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
- # add the installer debugger resources to the copied installer script
- Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
-
- # make the standard version of finished installer script
- "{scriptName}" ƒ makefile "{scriptName}.r" "{SimpleArchiveName}"
- # establish current date with time of NOON
- set theTime "'`date -d -s` 12:00:00 PM'"
- # rez the installer source into the form that the installer can read
- Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
- # establish filename for finished installer script, set creation date and time, set attributes
- SetFile -a b -d {theTime} "{scriptName}"
- # run scriptcheck utility on the rezzed installer script
- "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
- # set modification date and time for finished installer script
- SetFile -m {theTime} "{scriptName}"
-
- # do the simple compression
- "{SimpleArchiveName}" ƒ makefile "{SimpleSourceFileName}"
- # compress entire source file into one archive
- "{compressTool}" "{SimpleSourceFileName}" -o "{SimpleArchiveName}"
-
-